package testClasses.xstream;

import utilities.Key;
import view.AbstractView;
import view.IView;
import view.View;
import controller.IController;
import model.IModel;
import model.AbstractModel;

public class FakeModel implements IModel {

	private AbstractModel model;
	
	public FakeModel() {
		this.model = new AbstractModel();
	}
	
	
	//Interface methods
	public void attach(AbstractView view) {
		model.setSpatial(view);
	}

	public void detach(AbstractView view) {
		model.detach(view);
	}

	public void updateViews() {
		model.updateViews();		
	}

	public void setController(IController controller) {
		model.setController(controller);
	}

	public IController getController() {
		return model.getController();
	}

	public Key getKey() {
		return model.getKey();
	}

	public void setKey(Key key) {
		model.setKey(key);
	}

	public int getKeyValue() {
		return model.getKeyValue();
	}

}
